package deom1;

public class test {
    public static void drawow(shape sh)
    {
        sh.draw();
    }
    public static void main(String[] args) {
        flow one=new flow();
        rect two=new rect();
        shape[]shapes={one,two,two,one};
       /* for(int i=0;i<shapes.length;i++)
        {
            shape sh=shapes[i];     //shapes传参赋值给drawow
            sh.draw();
        }*/
        for(shape sh:shapes){
            sh.draw();
        }
    }
}
